package edu.whu.puppygo.entity;


import com.fasterxml.jackson.annotation.JsonIgnore;
import edu.whu.puppygo.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import java.time.LocalDate;

/**
 * @Author xinjiezhuang
 * @Date 2023-11-20
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class PetMatter extends BaseEntity {
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("内容")
    private String content = "暂无内容";
    @ApiModelProperty("分类")
    private PetMatterClassificationEnum classification;
    @ApiModelProperty("开始时间")
    private LocalDate startTime;
    @ApiModelProperty("执行周期")
    private int implementationCycleByDay;
    @ApiModelProperty("结束时间")
    private LocalDate finishTime;
    @ApiModelProperty("是否只执行一次")
    private boolean isOnlyOnce = false;
    @ApiModelProperty("宠物Id")
    private Long petId;
    @JsonIgnore
    @ApiModelProperty("用户id")
    private Long userId;
}
